package com.ybkj.daijia.server.service;

import com.ybkj.daijia.page.Page;
import com.ybkj.daijia.server.model.Announcement;
import java.util.Map;

public interface AnnouncementService {

    public Page<Announcement> queryAll();

    public Announcement findOne(Long id);

    public Page<Announcement> findByCompanyId(Long companyId);

    public Page<Map<String, Object>> queryByCompanyId(Long companyId, Integer page, Integer rows);

    public int delete(Long id);

    public Announcement create(String title, String content, Long companyId, String operator,
        String companyName);

}

